import type { PLogin,PCdzList } from "./types/params"
import type { RLogin, RCdzNameList } from "./types/response"

import { get, post } from "@/utils/http"

const API = {
  login: (params: PLogin) => post<RLogin>("/login", params),
  getCdzNames: () => get<PCdzList>("/GetCdzNameList"),
  getCdzList: (params: RCdzNameList) => get<PCdzList>("/GetAllCdzList",params)
}

export default API
